portableSql

Month Portable SQL Function

Syntax

Month as N (DateTime as D)

Month as N (DateTime as T)

Arguments

DateTimeDate Time

A field or value.

Returns

resultNumeric

Returns the month number from a date or datetime value.

Description

Extract the month number from a date or datetime value.

Discussion

The Month function extracts the month number from a date or datetime value.

Month() function executed on the Northwind Access database
SELECT FIRST 1 CurrentDateTime() AS Now, Month(CurrentDateTime()) AS Expr1 FROM Orders
=10/10/2019 12:48:35 00 pm|10